﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_config")]
    [Serializable]
    public class Configs : ObjectBase<Configs>
    {
        public Configs() { }

        public Configs(Int32 pid, String valname, String content, String str, String value, String valtype, String bottonname, Int32 groupid, Int32 isline, String isselect)
        {
            this.pid = pid;
            this.valname = valname;
            this.content = content;
            this.str = str;
            this.value = value;
            this.valtype = valtype;
            this.bottonname = bottonname;
            this.groupid = groupid;
            this.isline = isline;
            this.isselect = isselect;
            this.insert();
        }

        /// <summary>
        /// 排序字段,默认为50
        /// </summary>
        [Default(50), Column(Length = 3)]
        public Int32 pid { get; set; }

        [Column(Length = 30)]
        public String valname { get; set; }

        [Default(" "), Column(Length = 200)]
        public String content { get; set; }

        [Column(Length = 200)]
        public String str { get; set; }

        [LongText, Column(Name = "valuecontent")]
        public String value { get; set; }

        [Column(Length = 10)]
        public String valtype { get; set; }

        [Column(Length = 200)]
        public String bottonname { get; set; }

        [Default(0), Column(Length = 3)]
        public Int32 groupid { get; set; }

        [TinyInt, Default(0), Column(Length = 1)]
        public Int32 isline { get; set; }

        [Column(Length = 15)]
        public String isselect { get; set; }

    }
}
